package com.dataart.training.crimequalification.service;

import com.dataart.training.crimequalification.entity.UserEntity;
import org.springframework.security.core.userdetails.User;

import java.util.List;

public interface UserService {

    public User userEntityToUserDetails(UserEntity userEntity);

    public List<UserEntity> getAllUsers();

    public UserEntity getUserById(Long id);

    public UserEntity getUserAuthorization(String login, String password);

    public void addNewUser(UserEntity user);

    public UserEntity getUserByPhoneNumber(String phoneNumber);

    public UserEntity getUserByUsername(String username);

    public void updateUserDetails(UserEntity user);

    public void assignRoleToUser(UserEntity user, String role);

    public UserEntity getUserByEmail(String email);

    public void verifyUserAccount(UserEntity user);

    public void removeUser(UserEntity user);

}
